Component({
    externalClasses: [ "i-class" ],
    properties: {
        value: {
            type: Boolean,
            value: !1
        },
        size: {
            type: String,
            value: "default"
        },
        disabled: {
            type: Boolean,
            value: !1
        },
        name: {
            type: String,
            value: ""
        },
        setting: {
            type: Boolean,
            value: !1
        }
    },
    options: {
        multipleSlots: !0
    },
    methods: {
        toggle: function(e) {
            if (!this.data.disabled) {
                var t = this.data, a = !1;
                this.props ? (a = !this.props.value, this.props.value = a) : (a = !t.value, this.setData({
                    value: a
                })), this.triggerEvent && this.triggerEvent("change", {
                    value: a
                }), this.props && this.props.onChange && (e.detail = {
                    value: a
                }, this.props.onChange(e));
            }
        }
    }
});